package com.itheima.homework.test4;

public class TV {
     String name ;

    public TV() {
    }

    public TV(String name) {
        this.name = name;
    }

    public String getName(String name) {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void play(String channel ){
        System.out.println( name + "电视正在播放" + channel + "节目");
    }


}
